package com.example;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

@SpringBootApplication
@Slf4j
public class BootRabbitmqClient01Application {

    /**
     * 参考文档地址
     * https://blog.csdn.net/qq_35387940/article/details/100514134
     *
     * @param args
     */
    public static void main(String[] args) {
        Environment environment = SpringApplication.run(BootRabbitmqClient01Application.class, args).getEnvironment();
        log.info("\n Swagger  http://localhost:{}/swagger-ui.html \n",
                environment.getProperty("server.port"));
    }

}
